public class test {
    {
        System.out.println("父类代码块");
    }
}
class test2 extends test{
    static{
        System.out.println("静态代码块");
    }
    public test2(){
        System.out.println("子类构造方法");
    }
    public static void main(String[] args) {
        test2 dsf=new test2();
    }
}
